<template>
  <div id="basicLayout">
    <a-layout style="min-height: 100vh">
      <a-layout-header
        class="header"
        :style="{ position: 'fixed', width: '100%', top: 0, left: 0, zIndex: 100 }"
      >
        <GlobalHeader />
      </a-layout-header>
      <a-layout>
        <GlobalSlider class="slider" />
        <a-layout-content class="content" :style="{ marginLeft: '200px', marginTop: '64px' }">
          <router-view />
        </a-layout-content>
      </a-layout>
      <a-layout-footer class="footer"
        ><a href="https://gitee.com/zhyzyy2121" target="_blank"
          >HY映像 by zhaohaoyu@zhydoc.com</a
        >
        <span style="margin: 0 10px">|</span>
        <a href="https://beian.miit.gov.cn" target="_blank">津ICP备2025036176号 </a>
      </a-layout-footer>
    </a-layout>
  </div>
</template>
<script lang="ts">
import GlobalHeader from '@/components/GlobalHeader.vue'
import GlobalSlider from '@/components/GlobalSlider.vue'
import { defineComponent } from 'vue'

export default defineComponent({
  components: { GlobalHeader, GlobalSlider },
})
</script>
<style scoped>
#basicLayout {
  background: #fff;
}

#basicLayout .header {
  padding-inline: 20px;
  margin-bottom: 16px;
  color: unset;
  background: white;
}

#basicLayout .content {
  background: linear-gradient(to right, #fefefe, #fff);
  margin-bottom: 28px;
  padding: 20px;
}

#basicLayout .slider {
  background: #fff;
  padding-top: 20px;
  border-right: 1px solid #eee;
}

#basicLayout .footer {
  background: #efefef;
  padding: 16px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}

</style>
